<template>
    <div class="channel" v-if="pageData">
        <div class="footer">
            <p>{{pageData.bottom[0]}}</p>
            <p>{{pageData.bottom[1]}}</p>
            <p>{{pageData.bottom[2]}}</p>
            <h2>{{pageData.bottom[3]}}</h2>
        </div>
        <div class="header">
            <p>{{pageData.above[0]}}</p>
            <h2>{{pageData.above[1]}}</h2>
        </div>
        <div class="wechat-1 wechat-box"></div>
        <div class="wechat-2 wechat-box"></div>
        <div class="wechat-3 wechat-box"></div>
    </div>
</template>
<script type="text/javascript">
    export default {
        props: {
            pageData: {
                type: [Array, Object]
            }
        },
        data () {
            return {}
        },
        mounted () {
        },
        components: {},
        watch: {
            pageData: function (n, o) {
            }
        }
    }
</script>
<style lang='scss' rel="stylesheet/scss">
    .publickPostion{
        background-repeat: no-repeat;
        background-size: 100% 100%;
        position: absolute;
    }
    .channel{
        background-image: url("../../assets/images/channel-bg.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        width: 100%;
        height: 100%;
        .footer{
            color: #569cf4;
            font-size: 2.3rem;
            text-align: center;
            position: absolute;
            bottom: 8%;
            width: 100%;
            letter-spacing: 2px;
            line-height: 4rem;
            >h2{
                color: #2eeec9;
                font-size: 3.5rem;
                margin-top: 1rem;
            }
        }
        .header{
            color: #569cf4;
            font-size: 2rem;
            position: absolute;
            top: 7%;
            left: 11%;
            letter-spacing: 1px;
            >h2{
                font-size: 2.8rem;
                margin-top: 0.6rem;
                font-weight: bold;
                letter-spacing: 1px;
            }
        }
        .wechat-box{
            width: 12.5rem;
            height: 7.5rem;
            @extend .publickPostion;
            opacity: 0;
        }
        .wechat-1{
            top: 18%;
            left: 22%;
            background-image: url("../../assets/images/wechat-1.png");

        }
        .wechat-2{
            top: 34%;
            left: 16%;
            background-image: url("../../assets/images/wechat-2.png");
        }
        .wechat-3{
            right: 16%;
            top: 46%;
            background-image: url("../../assets/images/wechat-3.png");
        }
    }
    .showCurrentPageModule{
        .wechat-1{
            animation: defaultOpacityAni 0.2s linear .2s;
            animation-fill-mode: forwards;
        }
        .wechat-2{
            animation: defaultOpacityAni 0.2s linear .4s;
            animation-fill-mode: forwards;
        }
        .wechat-3{
            animation: defaultOpacityAni 0.2s linear .6s;
            animation-fill-mode: forwards;
        }
    }
</style>